#ifndef MC_MAIN_
#define MC_MAIN_

#include "mcNode.h"
#include <stdio.h>
#include <time.h>


class mcMain
{
public:
	clock_t start;
	double finish;
	mcNode *root;

	static double TIME_PER_CHOICE;
	//TIME_PER_CHOICE=1 means you should make the choise within 1 second

	static int TREE_DEPTH;

	void setTime(double);
	//default TIME_PER_CHOICE is 9.5.  
	//if you want to resert TIME_PER_CHOICE, use setTime before you initialize mcMain


	mcMain();
	Move nextMove(const RegionBoard&);
	void genBoard(MoveList list, Board& board, RegionBoard& rb);
};

//maintain a list that should be do the next of mcNode
//timer to hold the time
//and when the time's up. chose a step to play.

#endif
